<?php
/**
 * Smarty plugin
 *
 * @return 楼盘属性转中文
 */
function smarty_modifier_house_conf_decode($string, $item, $sepstr = ',')
{
	if($string === '' || !isset($item)){
		return '';
	}
	$CI = &get_instance();
	$CI->load->config('house_conf', true);
	$array = $CI->config->item($item, 'house_conf');
	if(!$array || !is_array($array)){
		return '';
	}
	$strarr = explode(',', $string);
	$return = '';
	foreach($strarr as $key){
		$return .= ($return ? $sepstr : '') . $array[$key];
	}
    return $return;
}
